package cn.net.chenbao.medical.api;

import cn.net.chenbao.medical.MedicalApplication;

/**
 * Created by Bubble on 2017/10/30.
 */

public class Api {
    private static final boolean isDebug = false;

    /**
     * 主机地址
     */
    public static String WW_ONLINE = isDebug ? "http://192.168.16.23:820"// "http://api.51wanj.com"
            : MedicalApplication.getInstance().getHostAddress();//http://cykapi.szhysy.cn


    public static final String PDA_JSON = "/Pda/Json/";

    public static String PDA_API = WW_ONLINE + PDA_JSON;


    /**
     * 配液异常
     *
     * @return
     */
    public static final String PyAbnormal() {
        return PDA_API + "PyAbnormal";
    }

    /**
     * 配液间
     *
     * @return
     */
    public static final String PyjList() {
        return PDA_API + "PyjList";
    }

    /**
     * 进仓异常
     *
     * @return
     */
    public static final String InAbnormal() {
        return PDA_API + "InAbnormal";
    }

    /**
     * 出仓异常
     *
     * @return
     */
    public static final String OutAbnormal() {
        return PDA_API + "OutAbnormal";
    }

    /**
     * 交接异常
     *
     * @return
     */
    public static final String JiaoAbnormal() {
        return PDA_API + "JiaoAbnormal";
    }


    /**
     * 报表
     *
     * @return
     */
    public static final String QueryRpt() {
        return PDA_API + "QueryRpt";
    }

    /**
     * 配液报表
     *
     * @return
     */
    public static final String PyRpt() {
        return PDA_API + "PyRpt";
    }

    /**
     * 进仓报表
     *
     * @return
     */
    public static final String InRpt() {
        return PDA_API + "InRpt";
    }

    /**
     * 出仓报表
     *
     * @return
     */
    public static final String OutRpt() {
        return PDA_API + "OutRpt";
    }

    /**
     * 交接报表
     *
     * @return
     */
    public static final String JiaoRpt() {
        return PDA_API + "JiaoRpt";
    }

    /**
     * 护士交接
     *
     * @return
     */
    public static final String JiaoConfirm() {
        return PDA_API + "JiaoConfirm";
    }

    /**
     * 入仓
     *
     * @return
     */
    public static final String InConfirm() {
        return PDA_API + "InConfirm";
    }

    /**
     * 权限判断
     *
     * @return
     */
    public static final String HaveGrant() {
        return PDA_API + "HaveGrant";
    }

    /**
     * 登录
     *
     * @return
     */
    public static final String LoginKsSubmit() {
        return PDA_API + "LoginKsSubmit";
    }

    /**
     * 登录
     *
     * @return
     */
    public static final String login() {
        return PDA_API + "login";
    }

    /**
     * 获取输液信息
     *
     * @return
     */
    public static String sykGet() {
        return PDA_API + "SykGet";
    }

    /**
     * 确认配药
     *
     * @return
     */
    public static String pyConfirm() {
        return PDA_API + "PyConfirm";
    }

    /**
     * 出仓确认
     *
     * @return
     */
    public static String outConfirm() {
        return PDA_API + "OutConfirm";
    }

    /**
     * 退药确认
     *
     * @return
     */
    public static final String backConfirm() {
        return PDA_API + "BackConfirm";
    }

    /**
     * 注销
     *
     * @return
     */
    public static String logOut() {
        return PDA_API + "LogOut";
    }


    /**
     * 科室
     *
     * @return
     */
    public static final String KsList() {
        return PDA_API + "KsList";
    }


}
